Skip to content

Code Quality: Update visual states for InfoPane in XAML instead #17416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

0x5bfa
Copy link
Member

@0x5bfa 0x5bfa commented Aug 7, 2025

Resolved / Related Issues

The reason why visual state manager failed to apply these changes within XAML was probably because the enums are inside the class. Now everything works as expected, removing extra lines of code.

Important

You should "Hide whitespace" in the diff view

Steps used to test these changes

  1. Open Files app
  2. Open InfoPane
  3. Resize it left and right
  4. Shrink the window enough small for InfoPane to go to the bottom
  5. Resize it up and down

@@ -67,7 +67,7 @@ public static readonly DependencyProperty ParentLevelProperty
public static readonly DependencyProperty GripperCursorProperty =
DependencyProperty.RegisterAttached(
nameof(GripperCursor),
typeof(InputSystemCursorShape?),
typeof(GripperCursorType),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This caused a type mismatch bug leading to an exception. Now fixed.

@yaira2 yaira2 self-requested a review August 10, 2025 14:08
@yaira2 yaira2 force-pushed the 5bfa/CQ-InfoPaneVisualStates branch from ed6f1a8 to 53cd654 Compare August 10, 2025 20:38
@yaira2
Copy link
Member

yaira2 commented Aug 10, 2025

The visual states don't seem to be setting the minimum widths for the info pane.

@yaira2 yaira2 added changes requested Changes are needed for this pull request and removed needs - code review labels Aug 11, 2025
@0x5bfa 0x5bfa force-pushed the 5bfa/CQ-InfoPaneVisualStates branch from 53da302 to 29f1231 Compare August 11, 2025 19:45
@0x5bfa 0x5bfa force-pushed the 5bfa/CQ-InfoPaneVisualStates branch from 29f1231 to 6b8494e Compare August 11, 2025 19:59
@yaira2
Copy link
Member

yaira2 commented Aug 11, 2025

The visual states aren't working correctly.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes requested Changes are needed for this pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants